package cn.com.chengq.filesshared.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "my.config")
public class MyConfig {
    private List<String> servers = new ArrayList<>();

    public void setServers(List<String> servers) {
        this.servers = servers;
    }
}
